/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */
#include "WidgetBase.h"

namespace QSThink
{
	QVector<WidgetBase*> WidgetBase::_widgets;

	WidgetBase::WidgetBase(QWidget *parent)
		: QWidget(parent)
	{
		_widgetId=_widgets.size();
		_widgets.push_back(this);
	}

	WidgetBase::~WidgetBase()
	{
		_widgets[_widgetId]=0;
	}


}
